Skip to content

Conversation

@purplecabbage
Copy link
Member

@purplecabbage purplecabbage commented Nov 14, 2025

Description

This is a non-breaking version of #42

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request removes default values for cache duration settings in the App Builder configuration library. Previously, when users didn't specify cache durations, the library provided default values (60 seconds for HTML, 604800 seconds for JS/CSS/images). Now, these fields will be undefined when not explicitly configured by the user, allowing downstream consumers to handle caching defaults themselves.

Key Changes:

  • Removed default cache duration constants from the defaults object
  • Updated cache duration assignment to not apply fallback values
  • Updated test mock data to reflect undefined values for cache durations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/index.js Removed cache duration default constants and fallback logic; cache duration fields now directly assigned from user config without defaults
test/data-mocks/config-loader.js Updated test mock configurations to set cache duration fields to undefined instead of numeric string values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@purplecabbage purplecabbage merged commit c1b8db8 into master Nov 15, 2025
17 checks passed
@purplecabbage purplecabbage deleted the NullDefaultCache branch November 15, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants